<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title><?php echo $title;?> </title>
	<link rel="stylesheet" href="<?php echo DIR_PUBLIC;?>/plugin/layui/css/layui.css">
	<link rel="stylesheet" href="../../public/icon/demo.css">
	  <link rel="stylesheet" href="../../public/icon/iconfont.css">
	  <script src="../../public/icon/iconfont.js"></script>
	  <link rel="stylesheet" href="../../public/icon1/demo.css">
	  <link rel="stylesheet" href="../../public/icon1/iconfont.css">
	  <script src="../../public/icon1/iconfont.js"></script>
	<script src="<?php echo DIR_PUBLIC;?>/js/jquery-1.9.1.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo DIR_PUBLIC;?>/plugin/layui/layui.js"></script>
	<script>
	//JavaScript代码区域
	layui.use('element', function(){
	  var element = layui.element;
	  
	});
	</script>
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo"><?php echo $title;?></div>
    <!-- 头部区域（可配合layui已有的水平导航） -->
   
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item">
        <a href="javascript:;">
          <img src="../../public/uploads/img/<?php echo $row['image'];?>" class="layui-nav-img">
          <?php echo $row['name'];?>
        </a>
        <dl class="layui-nav-child">
          <dd><a href="javascript:;" onclick="iframe('info.php')">基本资料</a></dd>
          <dd><a href="javascript:;" onclick="iframe('password.php')">修改密码</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item"><a href="logout.php"><span class="iconfont icon-tuichu "></span>&nbsp;注销</a></li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree"  lay-filter="test">
        <li class="layui-nav-item layui-nav-itemed">
          <a class="" href="javascript:;"><span class="iconfont icon-flag-fill "></span>&nbsp;试题管理</a>
          <dl class="layui-nav-child">
			<dd><a href="javascript:;" onclick="iframe('qtype.php')">题目类型</a></dd>
            <dd><a href="javascript:;" onclick="iframe('single.php')">单选题</a></dd>
            <dd><a href="javascript:;" onclick="iframe('judge.php')">判断题</a></dd>
            <dd><a href="javascript:;" onclick="iframe('multiple.php')">多选题</a></dd>
			<dd><a href="javascript:;" onclick="iframe('fill.php')">填空题</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;"><span class="iconfont icon-account"></span>&nbsp;用户管理</a>
          <dl class="layui-nav-child">
			<dd><a href="javascript:;" onclick="iframe('type.php')">用户类型</a></dd>
            <dd><a href="javascript:;" onclick="iframe('admin.php')">管理员</a></dd>
            <dd><a href="javascript:;" onclick="iframe('person.php')">考试人员</a></dd>
          </dl>
        </li>
		<li class="layui-nav-item">
          <a href="javascript:;"><span class="iconfont icon-shezhi-tianchong"></span>&nbsp;资料设置</a>
          <dl class="layui-nav-child">
            <dd><a href="javascript:;" onclick="iframe('info.php')">基本资料</a></dd>
            <dd><a href="javascript:;" onclick="iframe('password.php')">修改密码</a></dd>
          </dl>
        </li>
		<li class="layui-nav-item">
          <a href="javascript:;" onclick="iframe('grade.php')"><span class="iconfont icon-nail-fixed"></span>&nbsp;成绩管理</a>
        </li>
		<li class="layui-nav-item">
          <a href="javascript:;" onclick="iframe('data.php')"><span class="iconfont icon-shujuzhongxin"></span>&nbsp;数据图表</a>
        </li>
      </ul>
    </div>
  </div>
  
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <div style="padding: 10px;">
		<iframe id="jump" src="run.php" style="display: block;height:700px;width:100%;margin-top:10px;"></iframe>
	
	</div>

  </div>
  
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    沐水莲心-在线考试系统后台管理
  </div>
</div>
</body>
</html>
<script>
	function iframe(c){
			/* 
				c代表页面地址
				
			*/
			$("#jump").attr("src",c);
		}
</script>